package com.hgh.util;
/**
 * 节点对象
 */
public class Node {

    //节点的位置
    private int x,y;

    //节点的父节点
    private Node father;

    //从起点到该节点的耗散值
    private int g;

    //从该节点到终点的估计耗散值
    private int h;

    public Node(int x, int y){
        this.x = x;
        this.y = y;
    }

    public Node getFather() {
        return father;
    }

    public void setFather(Node father) {
        this.father = father;
    }

    public int getG() {
        return g;
    }

    public void setG(int g) {
        this.g = g;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
